package com.yunji.product.service;

import com.yunji.product.domain.ProductUnitDO;
import com.yunji.product.params.UnitParam;

import java.util.List;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.product.service
 * @Title: IProductUnitService
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-08-13 16:37:30      V1.0        HuaAo       新建类
 */

public interface IProductUnitService {

    boolean create(ProductUnitDO productUnit);

    List<ProductUnitDO> search(UnitParam param);

    ProductUnitDO select(Long unitId);

    boolean update(ProductUnitDO productUnit);

    void delete(Long... ids);

    ProductUnitDO getCacheById(Long id);
}